package com.bci.pwtz.mysql.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.CompanyMenu;

public interface CompanyMenuMapper {
    int deleteByPrimaryKey(Long companyMenuId);

    int insert(CompanyMenu record);

    int insertSelective(CompanyMenu record);

    CompanyMenu selectByPrimaryKey(Long companyMenuId);

    int updateByPrimaryKeySelective(CompanyMenu record);

    int updateByPrimaryKey(CompanyMenu record);
    
    List<CompanyMenu> selectMenuByPid(@Param("pid") int pid,
            @Param("benginIndex") int benginIndex, @Param("pageSize") int pageSize);

    int selectMenuByPidNum(int pid);
    
    List<CompanyMenu> selectMenuByPidOrderByRank(int pid);
}